package com.bamboocloud.ws;

import com.alibaba.fastjson.JSON;
import com.banboocloud.Codec.Sm3Signature;
import com.banboocloud.Codec.Sm4Cipher;

import java.util.HashMap;
import java.util.Map;

public class DecodeTest {
    public static void main(String[] args) {
        //sm4加解密
        String key = "SIDAKD87F7W7LNEQ";
        Sm4Cipher sm4Cipher = new Sm4Cipher();
        String source = "wNdqx/8STa6T+sQb8N7iQVk3UClK9pkw6UI4CdDgNi+KthzEGhoEQn0IwKPudr/oaXIc9q9VwRDwe+0AbmTMPQ9XHqZYYYYr6+sq4hZSy9NMc/LqunoyI7OiPIj3IBRm0W45229q2S5km54bgF61ElzyxOxrJhJuAgff+eEvS8A=";
        String target = sm4Cipher.decrypt(source, key);

        //输出密文
        System.out.println("target:" + target);
    }
}
